home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c++
- Subject: Re: visual c++: #undef
- Date: Thu, 15 Feb 1996 12:30:28 GMT
- Organization: Netcom
- Message-ID: <31232724.128137061@nntp.ix.netcom.com>
- References: <DMsrJE.7GI@info.uucp>
- NNTP-Posting-Host: ix-dc10-01.ix.netcom.com
- X-NETCOM-Date: Thu Feb 15 4:30:18 AM PST 1996
- X-Newsreader: Forte Agent .99d/32.182
-
- body2872@mach1.wlu.ca (robert body 9308 u) wrote:
-
- >
- > my #undefs cause Visual C++ (2.2) to give warnings, yet it fine in
- > Borland C++
- >
- >
- > i use it inside the function with first
- > #define LA
- > ..code
- > #undef LA
- >
- > or with #define and #undef between functions, and i always the warning
- > that
- > "unexpected characters following #undef; newline expected"
- > but there are no unexpected characters there, just
- > eg. #undef ROWCOL(i)
-
- I don't expect (i) there -- perhaps your compiler doesn't either.
-
- The correct syntax is
-
- #undef ROWCOL
-
-
- Michael M Rubenstein
-